<template>
  <div class="my-foot-container">
    我的足迹---{{ footType }}
  </div>
</template>
<script>
import { useRoute } from "vue-router";
export default {
  name: 'my-foot-page',
  data() {
    return {
      footType: 'publish',
    }
  },
  mounted() {
    const route = useRoute()
    // 页面刷新以后路由参数丢失
    const { type } = route.params;
    if(type) {
      this.footType = type;
      localStorage.setItem("lastestType", type);
    } else {
      this.footType = localStorage.getItem("lastestType")
    }
  },
  setup() {}
}
</script>
<style lang="less" scoped>
@import '~theme/flex.less';
</style>